﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace DDD4Fun.State
{
    public class NoQuarterState : IState
    {
         MyStateMachine machine;

         public NoQuarterState(MyStateMachine machine)
        {
            this.machine = machine;
        }

        #region IState Members

        public void InsertQuarter()
        {
            Console.WriteLine("你投了一个硬币");
            machine.SetState(machine.GetHasQuarterState());
        }

        public void EjectQuarter()
        {
            Console.WriteLine("要退币？先给钱吧，哥们");
        }

        public void TurnCrank()
        {
            Console.WriteLine("要转动曲柄？先给钱吧，哥们");
        }

        public void Dispense()
        {
            Console.WriteLine("要发放糖果？先给钱吧，哥们");
        }

        #endregion
    }
}
